package com.lq.educationsystem.lqclasses.entiy;

import java.io.Serializable;

/**
 * 
 * @TableName classes_subject_tb
 */
public class ClassesSubjectTb implements Serializable {
    /**
     * 班级课程表id
     */
    private Integer classesSubjectId;

    /**
     * 班级id
     */
    private Integer classesId;

    /**
     * 教师课程id
教师可以教不同的课
     */
    private Integer teacherSubjectId;

    private static final long serialVersionUID = 1L;

    /**
     * 班级课程表id
     */
    public Integer getClassesSubjectId() {
        return classesSubjectId;
    }

    /**
     * 班级课程表id
     */
    public void setClassesSubjectId(Integer classesSubjectId) {
        this.classesSubjectId = classesSubjectId;
    }

    /**
     * 班级id
     */
    public Integer getClassesId() {
        return classesId;
    }

    /**
     * 班级id
     */
    public void setClassesId(Integer classesId) {
        this.classesId = classesId;
    }

    /**
     * 教师课程id
教师可以教不同的课
     */
    public Integer getTeacherSubjectId() {
        return teacherSubjectId;
    }

    /**
     * 教师课程id
教师可以教不同的课
     */
    public void setTeacherSubjectId(Integer teacherSubjectId) {
        this.teacherSubjectId = teacherSubjectId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClassesSubjectTb other = (ClassesSubjectTb) that;
        return (this.getClassesSubjectId() == null ? other.getClassesSubjectId() == null : this.getClassesSubjectId().equals(other.getClassesSubjectId()))
            && (this.getClassesId() == null ? other.getClassesId() == null : this.getClassesId().equals(other.getClassesId()))
            && (this.getTeacherSubjectId() == null ? other.getTeacherSubjectId() == null : this.getTeacherSubjectId().equals(other.getTeacherSubjectId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClassesSubjectId() == null) ? 0 : getClassesSubjectId().hashCode());
        result = prime * result + ((getClassesId() == null) ? 0 : getClassesId().hashCode());
        result = prime * result + ((getTeacherSubjectId() == null) ? 0 : getTeacherSubjectId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classesSubjectId=").append(classesSubjectId);
        sb.append(", classesId=").append(classesId);
        sb.append(", teacherSubjectId=").append(teacherSubjectId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}